package com.pro.config;

import com.pro.interceptor.AdminInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class LoginConfig implements WebMvcConfigurer {

    /*@Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AdminInterceptor())
                .addPathPatterns("")
                .excludePathPatterns("/","/login/getJsUser","/css/**","/dTree/**","/fonts/**",
                        "/images/**","/js/**","/jquery/**","/layui/**","/ztree/**",
                        "/lib/**","/upload/**");
    }*/
}
